package com.jv.spring.beanmethod;

import com.jv.spring.nestedclass.scan.NestedUser;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class BeanMethodMain {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(BeanMethodConfig.class);
		NestedUser bean = ac.getBean(NestedUser.class);

		System.out.println(bean.getName());
	}
}
